package org.jackysoft.entity;

import java.util.Calendar;

import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.jackysoft.util.MySqlSchema;

@Entity
@Table(schema=MySqlSchema.Businessbase)
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class Attachment extends AbstractAppendinceItem {

	
	/**
	 * 
	 */
	private static final long serialVersionUID = -4562227418045711825L;
	private Calendar uploadTime;
	private String urlPath;
	public Attachment() {
	}

	public void setUploadTime(Calendar uploadTime) {
		this.uploadTime = uploadTime;
	}

	public Calendar getUploadTime() {
		return uploadTime;
	}

	public void setUrlPath(String urlPath) {
		this.urlPath = urlPath;
	}

	public String getUrlPath() {
		return urlPath;
	}

	@Override
	public Attachment clone() {
		Attachment cobj = new Attachment();
	    cobj.setId(id);
		
		return cobj;
	}

	
	

}
